from selenium import webdriver
import time
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By

dr = webdriver.Chrome()
dr.get("file:///C:/Users/Administrator/Desktop/自动化测试网页/自动化测试网页/注册A.html")
dr.maximize_window()
time.sleep(2)
e = dr.find_element(By.CSS_SELECTOR,"body > div > fieldset > form > p:nth-child(5) > button")
action = ActionChains(dr)
action.move_to_element(e)
action.perform()
time.sleep(2)
dr.quit()